// ** Third Party Components
import axios from 'axios'
import { FileText } from 'react-feather'
import { UncontrolledTooltip } from 'reactstrap'

export let data

// ** Get initial Data
data = [
  {
    id: '1',
    time: '2023-09-12 14:26:12',
    account: '1347554432',
    nick: '周宇',
    describe: '查看设备信息',
    request: '-',
  },
  {
    id: '2',
    time: '2023-09-12 14:26:12',
    account: '1347554432',
    nick: '周宇',
    describe: '新增用户',
    request: '新增成功',
  },
  {
    id: '3',
    time: '2023-09-12 14:26:12',
    account: '1347554432',
    nick: '周宇',
    describe: '查看设备信息',
    request: '-',
  },
  {
    id: '4',
    time: '2023-09-12 14:26:12',
    account: '1347554432',
    nick: '周宇',
    describe: '查看设备信息',
    request: '-',
  },
]

const statusEnum = {
  0: '#ea5455',
  1: '#56affd',
}
// ** Table Common Column
export const columns = [
  {
    name: '序号',
    minWidth: '100px',
    cell: (row) => row.id,
  },
  {
    name: '操作时间',
    minWidth: '150px',
    selector: (row) => row.time,
  },
  {
    name: '用户账号',
    minWidth: '150px',
    selector: (row) => row.account,
  },
  {
    name: '用户昵称',
    minWidth: '150px',
    selector: (row) => row.nick,
  },
  {
    name: '描述信息',
    minWidth: '150px',
    selector: (row) => row.describe,
  },
  {
    name: '请求信息',
    minWidth: '150px',
    selector: (row) => row.request,
  },
]
